<h1>Kerning</h1>

<p>Kerning describes the spacing between a pair of glyphs. The kerning is used to 
fine-tune the spacing between specific pairs of characters to make them visually more appealing. The glyphs are identified by an index into the glyph table for the font. The adjustment is specified relative to the advance define for the left glyph.</p>

<table>

<tr>
<th nowrap>Field Name</th>
<th>Type</th>
<th>Size</th>
<th>Description</th>
</tr>

<tr>
<td nowrap valign="top">leftGlyphIndex</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap align="right">8 or 16</td>
<td>The index into the code table that identifies the glyph on the left side of 
the pair.</td>
</tr>

<tr>
<td nowrap valign="top">rightGlyphIndex</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap align="right">8 or 16</td>
<td>The index into a code table that identifies the glyph on the right side of the pair.</td>
</tr>

<tr>
<td nowrap valign="top">adjustment</td>
<td nowrap valign="top">signed int</td>
<td nowrap align="right">16</td>
<td>The adjustment in twips that will be added to the advance for the glyph on the left side of the pair to obtain the final spacing between the glyphs.</td>
</tr>

</table>

<p>Kernings are only used within DefineFont2 font definitions and provide more 
precise control over the layout of a font's glyph than was possible using 
DefineFont and FontInfo.</p>

<h2>History</h2>

<p>Kerning represents the KerningRecord from the Macromedia Flash (SWF) File 
Format Specification. It was introduced in Flash 2.</p>
